package com.qfedu.tantu.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qfedu.tantu.dto.IndexArticleDto;
import com.qfedu.tantu.entity.Article;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ArticleDao extends BaseMapper<Article> {
    @Select("select a.title,a.content,a.imgurl,a.id atid  from t_article a limit 2")
    List<IndexArticleDto> all();
}
